﻿Public Class clsFlbMst
    Public Function selectAll(mst_value As String) As DataTable
        Dim dt As DataTable = New DataTable
        Dim szSql As String = String.Empty
        szSql &= "SELECT * FROM sf.t_mst_flb "
        szSql &= " WHERE 1 = 1 "
        If mst_value.Length > 0 Then
            szSql &= " and mst_value = ? "
            dt = DBacs.ExecuteSql(szSql, -1, mst_value)
        Else
            dt = DBacs.ExecuteSql(szSql, -1)
        End If
        Return dt
    End Function

    Public Function selectAll() As DataTable
        Dim dt As DataTable = New DataTable
        Dim szSql As String = String.Empty
        szSql &= "SELECT * FROM sf.t_mst_flb "
        szSql &= " WHERE 1 = 1 and cur_num > 0"
        dt = DBacs.ExecuteSql(szSql, -1)
        Return dt
    End Function

    Public Function getAllList() As DataTable
        Dim szSql As String = String.Empty
        szSql &= "SELECT * FROM sf.t_mst_flb "
        szSql &= " WHERE 1 = 1 and validity = ?"
        Dim dt As DataTable = DBacs.ExecuteSql(szSql, -1, "1")
        Return dt
    End Function

End Class
